#ifndef _AUDIT_H_
#define _AUDIT_H_

typedef struct {
	ebc_mdid_t	mdid;
	ecm_uint16	pktcnt, pktcur;
	ebc_msgid_t	msgid;
} lcallinfo_t;

typedef struct {
	ebc_mdid_t	mdid_caller, mdid_callee;
	ecm_uint16	pktcnt, pktcur;
	ebc_msgid_t	msgid;
} ecallinfo_t;

typedef struct {
	ebc_ndid_t	ndid;
	ebc_mdid_t	mdid;
	ecm_uint16	pktcnt, pktcur;
	ebc_msgid_t	msgid;
} rcallinfo_t;

extern ecm_ptr_t create_lcallinfo(void);
extern void destroy_lcallinfo(ecm_ptr_t lcallinfo);
extern ecm_ptr_t create_ecallinfo(void);
extern void destroy_ecallinfo(ecm_ptr_t ecallinfo);

extern ECMBOOL ebcd_audit_pktb(ebcd_pch_t *dpch_src, ebcd_pch_t *dpch_dst, ebc_pktb_t *pktb);
extern void clear_audit_infos(ebcd_pch_t *dpch);

#endif
